<?php /* Smarty version 2.6.18, created on 2012-09-26 16:01:28
         compiled from modules/pbToppings.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'explode', 'modules/pbToppings.tpl', 24, false),array('modifier', 'cat', 'modules/pbToppings.tpl', 41, false),array('modifier', 'price_format', 'modules/pbToppings.tpl', 44, false),)), $this); ?>
<table width="100%" border="0" cellspacing="5" cellpadding="5">
  <tr>
    <td width="150" ></td>
    <?php if ($this->_tpl_vars['pizza']['sides']['0'] == 1): ?>
    <td style="text-align:center"><img src="images/none.jpg" /><br />
      <?php echo $this->_tpl_vars['lang']['pizzabuilder_none']; ?>
</td>
    <?php endif; ?>
    <?php if ($this->_tpl_vars['pizza']['sides']['1'] == 1): ?>
    <td  style="text-align:center"><img src="images/left.jpg" /><br />
      <?php echo $this->_tpl_vars['lang']['pizzabuilder_left']; ?>
</td>
    <?php endif; ?>
    <?php if ($this->_tpl_vars['pizza']['sides']['2'] == 1): ?>
    <td  style="text-align:center"><img src="images/whole.jpg" /><br />
      <?php echo $this->_tpl_vars['lang']['pizzabuilder_whole']; ?>
</td>
    <?php endif; ?>
    <?php if ($this->_tpl_vars['pizza']['sides']['3'] == 1): ?>
    <td   style="text-align:center"><img src="images/right.jpg" /><br />
      <?php echo $this->_tpl_vars['lang']['pizzabuilder_right']; ?>
</td>
    <?php endif; ?> </tr>
  <?php $_from = $this->_tpl_vars['toppings']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['topping']):
?>
  <tr>
    <td width="200">
    
    <?php $this->assign('toppingsArray', ((is_array($_tmp=":")) ? $this->_run_mod_handler('explode', true, $_tmp, $this->_tpl_vars['topping']) : explode($_tmp, $this->_tpl_vars['topping']))); ?> 
    <?php $this->assign('optionName', $this->_tpl_vars['toppingsArray']['0']); ?>
    <?php $this->assign('optionPrice', $this->_tpl_vars['toppingsArray']['1']); ?>
    <?php $this->assign('defaultchecked', $this->_tpl_vars['toppingsArray']['2']); ?>
        
    <?php if ($this->_tpl_vars['optionPrice'] == 'checked'): ?>
      <?php $this->assign('optionPrice', $this->_tpl_vars['defaultchecked']); ?>
      <?php $this->assign('defaultchecked', 'checked'); ?>
    <?php endif; ?>
    <?php $this->assign('option', ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['optionName'])) ? $this->_run_mod_handler('cat', true, $_tmp, ":") : smarty_modifier_cat($_tmp, ":")))) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['optionPrice']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['optionPrice']))); ?>
    <br>

    <?php echo $this->_tpl_vars['optionName']; ?>
<?php if ($this->_tpl_vars['optionPrice'] != ""): ?><span style="color:green"> <em>(+<?php echo ((is_array($_tmp=$this->_tpl_vars['optionPrice'])) ? $this->_run_mod_handler('price_format', true, $_tmp) : smarty_modifier_price_format($_tmp)); ?>
)</em></span><?php endif; ?></td>
    <?php $_from = $this->_tpl_vars['pizza']['sides']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['sides']):
?>
      <?php $this->assign('checked', ""); ?>

      <?php if ($this->_tpl_vars['k'] == 0 && $this->_tpl_vars['sides'] == 1): ?>
        <?php $this->assign('side', 'None'); ?>
        <?php if ($this->_tpl_vars['defaultchecked'] != 'checked'): ?>
          <?php $this->assign('checked', 'checked'); ?>
        <?php endif; ?>
      <?php elseif ($this->_tpl_vars['k'] == 1 && $this->_tpl_vars['sides'] == 1): ?>
        <?php $this->assign('side', 'Left'); ?>
      <?php elseif ($this->_tpl_vars['k'] == 2 && $this->_tpl_vars['sides'] == 1): ?>
        <?php $this->assign('side', 'Whole'); ?>
        <?php if ($this->_tpl_vars['defaultchecked'] == 'checked'): ?>
          <?php $this->assign('checked', 'checked'); ?>
        <?php endif; ?>
      <?php elseif ($this->_tpl_vars['k'] == 3 && $this->_tpl_vars['sides'] == 1): ?>
        <?php $this->assign('side', 'Right'); ?>
      <?php endif; ?>

      <?php if ($this->_tpl_vars['sides'] == 1): ?>
        <td style="text-align:center"><input class="calc<?php if ($this->_tpl_vars['k'] != 0): ?> topping<?php endif; ?>" type="radio" name="topping[<?php echo $this->_tpl_vars['option']; ?>
]" <?php echo $this->_tpl_vars['checked']; ?>
 <?php if ($this->_tpl_vars['k'] == 0): ?> value=""  <?php else: ?> value="<?php echo $this->_tpl_vars['option']; ?>
 <?php echo $this->_tpl_vars['side']; ?>
 Side|<?php echo $this->_tpl_vars['side']; ?>
" <?php endif; ?>></td>
      <?php endif; ?>
    <?php endforeach; endif; unset($_from); ?>
    
    
    <?php endforeach; endif; unset($_from); ?> </tr>
</table>